package actionspeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// ActionGiftConfig 系统接口表
type ActionGiftConfig struct {
	Id                  int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"api的id"`
	UserScore           int64          `json:"userScore" gorm:"column:user_score;type:bigint;default:0;not null;comment:每个礼物对应的积分"`           //
	UserCpScore         int64          `json:"userCpScore" gorm:"column:user_cp_score;type:bigint;default:0;not null;comment:每个礼物对应的cp积分"`    //
	CpTotalScore        int64          `json:"cpTotalScore" gorm:"column:cp_total_score;type:bigint;default:0;not null;comment:每个礼物对应的cp总积分"` //
	ClientTranslationId int            `json:"clientTranslationId" gorm:"column:client_translation_id;type:int;default:0;not null;comment:和客户端关联关系的id,这个字段不能通过管理后台改"`
	Name                string         `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment: 礼物名字"`
	GiftValue           int            `json:"giftValue" gorm:"column:gift_value;type:int;default:0;not null;comment:礼物价值"`
	Icon                string         `json:"icon" gorm:"column:icon;type:varchar(256);not null;default:'';comment: 礼物图片"`
	GiftId              string         `json:"giftId" gorm:"column:gift_id;type:varchar(256);not null;default:'';comment: 礼物id"`
	CreatedAt           time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt           time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt           gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
